

#include "lcd_font.h"
#include "ASCII_8X16.h"

#define     ASCII_W             8
#define     ASCII_H             16
#define     ASCII_BUFFER_LEN    16


#define     HZK_W               16
#define     HZK_H               16
#define     HZK_BUFFER_LEN      32


static void lcd_disp_ascii_16x8(int16_t x, int16_t y, uint32_t usChar)
{
    uint8_t ucBuffer[ASCII_BUFFER_LEN] = {0};
    
    if(usChar < 0x7f)    //ASCII
    {
        GetASCIICode(ucBuffer, usChar); //
        Lcd_CharDot(x,y,ASCII_W,ASCII_H,ucBuffer,lcd_get_font_color_fore(),lcd_get_font_color_back());
    }else 
    {
        
    }
}

static uint8_t  ascii16_get_font_w(uint32_t ch)
{
    ch = ch;
    return ASCII_W;
}

const lcd_font_t Font_ASCII16X8_default =
{
    ASCII_H,
    NULL,
    NULL,
    ascii16_get_font_w,
    lcd_disp_ascii_16x8,
};

